package com.google.gson;

import java.util.LinkedHashMap;
import java.util.Map.Entry;

final class v extends LinkedHashMap implements b {
    private final int a;

    public v(int i) {
        super(i, 0.7f, true);
        this.a = i;
    }

    public synchronized Object a(Object obj) {
        return get(obj);
    }

    public synchronized void a(Object obj, Object obj2) {
        put(obj, obj2);
    }

    protected boolean removeEldestEntry(Entry entry) {
        return size() > this.a;
    }
}
